<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="item in list" :key="item.id">
                <span>{{item.goodName}}</span>|
                <span>{{item.price}}</span>|
                <span v-if="item.stats === 0">未付款</span>
                <span v-else-if="item.stats === 1">已下单</span>
                <span v-else-if="item.stats === 2">已发货</span>
            </li>
        </ul>
    </div>
    <script>
        new Vue({
            el:"#app",
            data:{
                list:[
                    {
                        id:001,
                        goodName:"手机1",
                        price:"3000",
                        stats:0//未付款
                    },
                    {
                        id:002,
                        goodName:"手机2",
                        price:"4000",
                        stats:1//已下单
                    },
                    {
                        id:003,
                        goodName:"手机3",
                        price:"5000",
                        stats:2//已发货
                    },
                ]
            },
        })
    </script>
</body>
</html>